﻿<%@ Page Language="vb" MasterPageFile="~/Downloads.master" AutoEventWireup="false" CodeBehind="Download.aspx.vb" Inherits="Download_Tracker_for_Yaf.Download" %>
 <asp:Content ID="Content2" ContentPlaceHolderID="contentplaceholder1" Runat="Server">
        
   



<div class="DLWrapper">

    <div>
        <table class="DownloadList">
            <asp:Repeater ID="DownloadList1" runat="server" DataSourceID="DownloadListDS1" OnItemDataBound="DownloadList1_ItemDataBound">
                <HeaderTemplate>
                    <tr>
                        <td class="ListHeaderLeft">
                        </td>
                        <td class="ListHeader">
                            File Name
                        </td>
                        <td class="ListHeader">
                            Details
                        </td>
                        <td class="ListHeader">
                            Downloads
                        </td>
                        <td class="ListHeader">
                            Actions
                        </td>
                        <td class="ListHeaderRight">
                            Link
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7" class="ListHeader2">
                        </td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="ListItem">
                            <img alt="File" class="listimage" src="<%#setlistimage(DataBinder.Eval(Container.DataItem, "FileImage").tostring)%>" />
                        </td>
                        <td class="ListItemName">
                            <span class="listheading">
                                <%#DataBinder.Eval(Container.DataItem, "Name")%><br />
                            </span><span class="listSubheading">Uploaded By <a href="http://xwinn.com/forums.aspx?g=profile&amp;u=<%#DataBinder.Eval(Container.DataItem, "AddedBy")%>"
                                rel="nofollow">
                                <%#GetUser(DataBinder.Eval(Container.DataItem, "addedby"))%></a>
                                <abbr class="timeago" title="2012-06-29T06:46:35Z">
                                    <%#Format(DataBinder.Eval(Container.DataItem, "PublishDate"), "MM-dd-yyy")%></abbr></span>
                        </td>
                        <td class="ListItem">
                            <%#DataBinder.Eval(Container.DataItem, "OS")%>
                        </td>
                        <td class="ListItem">
                            <%#getdls(DataBinder.Eval(Container.DataItem, "FileID")) %>
                        </td>
                        <td class="ListItem">
                            <div id="DownloadAdmin" class="DownloadAdmin" runat="server">
                                <a href="../Administration/ManageDownload.aspx?FileID=<%#DataBinder.Eval(Container.DataItem, "FileID")%> &Action=Edit">
                                    <img class="actionimage" title="Edit Download" alt="Edit Download" src="/Images/note_edit5.gif" /></a>
                                <a href="../Administration/ManageDownload.aspx?FileID= <%#DataBinder.Eval(Container.DataItem, "FileID") %>&Action=Delete">
                                    <img class="actionimage" title="Delete Download" alt="Delete Download" src="/Images/delete12.gif" /></a>
                                <a href="../Administration/ManageDownload.aspx?FileID= <%#DataBinder.Eval(Container.DataItem, "FileID") %>&Action=View">
                                    <img class="actionimage" title="View Downloads" alt="View Downloads" src="/Images/address_book7.gif" /></a>
                            </div>
                        </td>
                        <td class="ListItem">
                            <span class="listheading"><a href="../getdl.aspx?Fileid=<%#DataBinder.Eval(Container.DataItem, "FileID")%>&FilePath=<%#DataBinder.Eval(Container.DataItem, "FileName")%>">
                                Download</a></span><br />
                            <span class="listSubheading">Size:
                                <%#FormatSize(DataBinder.Eval(Container.DataItem, "Size"))%></span>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr>
                        <td colspan="7" class="ListFooter">
                            <div class="AddDownload">
                                <asp:Button CssClass="AddDownload" ID="AddDownload" runat="server" Text="New Download" /></div>
                        </td>
                    </tr>
                </FooterTemplate>
            </asp:Repeater>
            <asp:SqlDataSource ID="DownloadListDS1" runat="server" ConnectionString="<%$ ConnectionStrings:yafnet %>"
                SelectCommand="SELECT Files.Name, Files.FileID, Files.Version, Files.FileName,Files.FileImage, Files.Timestamp, Files.AddedBy, Files.SupportForum, Files.Size, Files.PublishDate, OperatingSystems.Name AS OS FROM Files INNER JOIN OperatingSystems ON Files.OS = OperatingSystems.OS">
            </asp:SqlDataSource>
        </table>
    </div>

    </div>

     
        
        </asp:Content>